home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
A-COMAL Series
/
(k)aaj.d64
/
lst.turnto
< prev
next >
Wrap
Text File
|
2007-02-28
|
545b
|
24 lines
9000 //
9010 ╞╒╬├ DEG(R) ├╠╧╙┼─
9020 ╥┼╘╒╥╬ 57.2957795*R
9030 ┼╬─╞╒╬├ DEG
9040 //
9050 ╞╒╬├ RAD(D) ├╠╧╙┼─
9060 ╥┼╘╒╥╬ .017453295*D
9070 ┼╬─╞╒╬├ RAD
9080 //
9090 ╞╒╬├ RHO(X,Y) ├╠╧╙┼─
9100 ╔╞ ┴┬╙(X)<1E-08 ╘╚┼╬ ╥┼╘╒╥╬ ╨╔*(Y<0)
9110 ╔╞ ┴┬╙(Y)<1E-08 ╘╚┼╬ ╥┼╘╒╥╬ ╨╔/2*╙╟╬(X)
9120 ╔╞ Y<0 ╘╚┼╬ ╥┼╘╒╥╬ (╨╔/2+┴╘╬(-Y/X))-╨╔*(X<0)
9130 ╥┼╘╒╥╬ ┴╘╬(X/Y)
9140 ┼╬─╞╒╬├ RHO
9150 //
9160 ╞╒╬├ THETA(X,Y) ├╠╧╙┼─
9170 ╥┼╘╒╥╬ ╙╤╥(X*X+Y*Y)
9180 ┼╬─╞╒╬├ THETA
9190 //
9200 ╨╥╧├ TURNTO(X,Y)
9210 SETHEADING(DEG(RHO(X-XCOR,Y-YCOR)))
9220 ┼╬─╨╥╧├ TURNTO